<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org"
      xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
    <head>
        <th:block th:include="include::header('违章签发')" />
    </head>
    <body class="febs-container" id="febs-peccancyIssuanceRecord">
        <div class="febs-body layui-fluid"  lay-title="违章签发" >
            <div class="febs-body-search">
                <form class="jhg-body layui-form layui-table-form" lay-filter="peccancyIssuanceRecord-table-form" id="peccancyIssuanceRecord-table-form">
                    <div class="layui-card">
                        <div class="layui-card-body">
                            <div class="layui-form-item">
                                <div class="layui-inline" th:classappend="${hasHeadCompanyRole } ? '' : 'febs-hide'">
                                    <label class="layui-form-label layui-form-label-sm">公司名称</label>
                                    <div class="layui-input-inline" >
                                        <select name="tenantId" id="tenantId" lay-search="" >
                                            <option th:each="item:${tenantList }"
                                                    th:value="${item.tenantId}" th:text="${item.tenantName}"
                                                    th:selected="${tenantId ==item.tenantId}">
                                        </select>
                                    </div>
                                </div>
                                <div class="layui-inline">
                                    <label class="layui-form-label layui-form-label-sm">项目名称</label>
                                    <div class="layui-input-inline" style="width:190px;">
                                        <input type="text" name="projectName" autocomplete="off" class="layui-input">
                                    </div>
                                </div>
                                <div class="layui-inline">
                                    <label class="layui-form-label">日期范围</label>
                                    <div class="layui-input-inline" id="laydate-range">
                                        <input type="text" name="startDate" autocomplete="off" id="start-date" lay-verify="date"
                                               class="layui-input" placeholder="开始日期">
                                    </div>
                                    <div class="layui-form-mid">-</div>
                                    <div class="layui-input-inline">
                                        <input type="text" name="endDate" autocomplete="off" id="end-date" lay-verify="date"
                                               class="layui-input" placeholder="结束日期">
                                    </div>
                                </div>
                                <div class="layui-inline">
                                    <label class="layui-form-label layui-form-label-sm">被奖惩人</label>
                                    <div class="layui-input-inline" style="width:190px;">
                                        <input type="text" name="peccancyRealName" autocomplete="off" class="layui-input">
                                    </div>
                                </div>
                                <div class="layui-inline">
                                    <label class="layui-form-label layui-form-label-sm">状态</label>
                                    <div class="layui-input-inline" style="width:190px;">
                                        <select name="status" id="status">
                                            <option value="4">待签发</option>
                                            <option value="5">签发退回</option>
                                            <option value="6">已签发</option>
                                            <option value="10">作废</option>
                                        </select>
                                    </div>
                                </div>
                                <div class="layui-inline">
                                    <div id="query" class="layui-btn">
                                        <em class="layui-icon">&#xe615;</em> 查询
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </form>
            </div>
            <div class="febs-table-full">
                <table lay-filter="peccancyIssuanceRecordTable" id="peccancyIssuanceRecordTable" lay-data="{id: 'peccancyIssuanceRecordTable'}"></table>
            </div>
        </div>
        <th:block th:include="include::foot" />
        <script data-th-inline="javascript">
            var hasHeadCompanyRole = [[${hasHeadCompanyRole}]];
            var tenantList = [[${tenantList }]];
            var peccancyRootCauseList = [[${peccancyRootCauseList}]];
            var jobOperationList = [[${jobOperationList}]];
            var peccancyTypeList = [[${peccancyTypeList}]];
        </script>
        <script type="text/html" id="peccancyIssuanceRecord-tool">

            </span>
            <span shiro:lacksPermission="peccancyIssuanceRecord:issuance">
            <span class="layui-badge-dot febs-bg-orange"></span> 无权限
            </span>
            {{# if(d.status=='4'){  }}
            <button type="button" class="layui-btn layui-btn-xs  layui-btn-primary layui-border-orange" lay-event="issuance" shiro:hasPermission="peccancyIssuanceRecord:issuance" ><i class="layui-icon febs-edit-area febs-gren">&#xe79f;签发</i></button>
            {{# }  }}
            {{# if(d.penaltyAmountStatus !='1'){  }}
            <button type="button" class="layui-btn layui-btn-xs  layui-btn-primary layui-border-red" lay-event="del" title="删除"
                    shiro:hasPermission="peccancy:manager"><i class="layui-icon layui-icon-delete">删除</i></button>
            {{# }  }}
        </script>
        <script th:src="@{/febs/js/peccancy/peccancyIssuanceRecord/peccancyIssuanceRecordList.js(v=1)}"></script>
    </body>
</html>